package com.baidu.day02;

import java.util.Arrays;

/**
 * Create with Intellij IDEA
 *
 * @Author Q
 * @date 2021/11/23/10:49
 */
public class ArraysCopyDemo {
    public static void main(String[] args) {
        int[] arr = {};
        System.out.println(arr.length);//0

        //"扩容操作"
        arr = Arrays.copyOf(arr,3);
        System.out.println(arr.length);//3
    }
}